package com.controller;

import com.entity.PersonEntity;
import com.base.entity.vo.SciencePersonVo;
import com.base.utils.Result;
import com.service.PersonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "科研人员详情")
@RestController
@RequestMapping("/kyxq")
public class PersonController {
    @Autowired
    PersonService personService;
    @PostMapping("/personCheck")
    @ApiOperation(value = "查看科研人员")
    public Result personCheck(@RequestBody SciencePersonVo sciencePersonVo){
        PersonEntity list =personService.personCheck(sciencePersonVo);
        return Result.succ(list);
    }

}
